package com.luoc.service.impl;

import com.luoc.service.DecoratorComponent;

/**
 * @Author: luoc
 * @Date: 2019/9/20 10:36
 */
public class DecoratorImpl extends Decorator {


    public DecoratorImpl(DecoratorComponent component) {
        super(component);
    }

    @Override
    public void opration() {
        super.opration();
        addBehavior();
    }

    public void addBehavior(){
        System.out.println("实现类的装饰");
    }
}
